package cn.msi.project.action;

import cn.common.action.GeneralAction;
import cn.msi.project.domain.Index;
import cn.msi.project.service.IndexService;

/**
 * 项目指标管理请求类
 * 
 * @author Administrator
 * 
 */
public class IndexAction extends GeneralAction {

	private static final long serialVersionUID = 526273159716073448L;

	private Index index = new Index();

	private IndexService indexService;

	/**
	 * 查询项目指标
	 * 
	 * @throws Exception
	 */
	public void searchIndexList() throws Exception {
		String json = indexService.searchIndex(index);
		out(json);
	}

	/**
	 * 项目指标表单界面
	 * 
	 * @return
	 * @throws Exception
	 */
	public String findIndex() throws Exception {
		return SUCCESS;
	}

	/**
	 * 保存项目指标
	 * 
	 * @throws Exception
	 */
	public void saveIndex() throws Exception {
		indexService.saveIndex(index);
	}

	public Index getIndex() {
		return index;
	}

	public void setIndex(Index index) {
		this.index = index;
	}

	public void setIndexService(IndexService indexService) {
		this.indexService = indexService;
	}
}
